From: Marco Trevisan (TreviƱo) Date: Mon, 1 Feb 2021 18:44:00 +0000 (+0100) Subject: authPrompt: Wiggle error messages coming from the Fingerprint service X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~333 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=75a1798e75a79c29a48596b91ab89cd2a399efdb;p=gnome-shell.git authPrompt: Wiggle error messages coming from the Fingerprint service When error messages are coming from the fingerprint service they are actual failures due to an user input in some device, in so in such case we can highlight this by using a wiggle effect. This mimics what has been done in gnome-control-center fingerprint panel and part of [1]. [1] https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/56 Part-of: --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 95f07a6a3..7b5d03ef4 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -430,6 +430,10 @@ var AuthPrompt = GObject.registerClass({ } else { this._message.opacity = 0; } + + if (type === GdmUtil.MessageType.ERROR && + this._userVerifier.serviceIsFingerprint(serviceName)) + Util.wiggle(this._message); } updateSensitivity(sensitive) {